Fix build issue due to missing VK_RESULT_RANGE_SIZE
authorAdrian Perez de Castro <aperez@igalia.com>
Mon, 11 May 2020 07:07:41 +0000 (10:07 +0300)
committerAdrian Perez de Castro <aperez@igalia.com>
Mon, 11 May 2020 07:07:41 +0000 (10:07 +0300)
commit5c4ca1424d7d90a92f15579fe9d14fbb9952d7d7
tree2dbbc35fb692e23fda7da5246fbc1609ede24052
parentf6a4e68973fcf78504e320453c576abb789d9e03
Fix build issue due to missing VK_RESULT_RANGE_SIZE

Conditionally check whether the Vulkan headers version defines
VK_RESULT_RANGE_SIZE, and avoid using it for version >=140. The
following comming in Vulkan-Headers has removed the enum value:

  https://github.com/KhronosGroup/Vulkan-Headers/commit/0c5351f5e9114d3e9033aeae51d036a3d201c082#diff-4febd94c0666d59030d8b1dd20c72403
gdk/gdkvulkancontext.c